package com.sd.dao.impl;

import com.sd.common.beans.AppInfo;
import com.sd.dao.AppInfoDAO;
import com.sd.mapper.AppInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.lang.annotation.Retention;

@Repository
public class AppInfoDAOImpl implements AppInfoDAO {
    @Autowired
    private AppInfoMapper mapper;

    @Override
    public void save(AppInfo appInfo) {
        mapper.save(appInfo);
    }

    @Override
    public AppInfo getByAppId(String appId) {
        return mapper.getByAppId(appId);
    }
}
